<template>
  <!--稿件评估-->
  <div>
    <carousel :autoplaySpeed="autoplaySpeed" :Img="Img"></carousel>
    <div class="wrapper">
      <Row :gutter="16">
        <i-col span="6">
          <ngn :data="data" :activeIndex="activeIndex"></ngn>
        </i-col>
        <i-col span="18">
          <div class="com">
            <p class="p">
              <Icon type="ios-pin"/>
              <span>您现在的位置是:</span><span class="span">{{data.title}}</span><span> > </span><span
              class="span">稿件评估</span>
            </p>
          </div>
          <div>
            <div class="industry">
              <ul>
                <li v-for="lis in lists">
                  <router-link :to="{path:'/assess', query:{id:lis.tid}}" class="a">
                    <span>{{lis.c_title}}</span>
                    <span style="float: right;">{{lis.create_time}}</span>
                  </router-link>
                </li>
              </ul>
            </div>
          </div>
        </i-col>
      </Row>
    </div>
  </div>
</template>

<script>
  import carousel from '../module/carousel'
  import ngn from '../module/ngn'

  export default {
    components: {
      carousel, ngn
    },
    data() {
      return {
        activeIndex: 2,
        autoplaySpeed: 100000,
        workTrendLink: '',
        Img: [
          {
            id: 1,
            imageLocation: require('../../assets/img/u69.jpg'),
            state: true,
            uri: "",
          },
        ],
        data: {
          title: '个人中心',
          list: [
            {list: '个人信息', link: 'personalInformation',},
            {list: '稿件直投', link: 'ManuscriptDirectInvestment',},
            {list: '稿件评估', link: 'TheManuscriptEvaluation',},
            {list: '账号安全', link: 'accountSecurity',},
            {list: '投诉建议', link: 'complaintAndAdvice',},
          ],
        },
        URL: this.$api.url,
        id: '',
        lists: '',
      }
    },
    mounted() {
      this.id = localStorage.getItem('ms_userid');
      this.dataArray();
    },
    methods: {
      dataArray() {
        this.$axios.get(this.URL + '/thesis/assessment/selectAssess/' + this.id).then((res) => {
          if (res.data.code == 200) {
            this.lists = res.data.data
          }
        });
      }
    },
  }
</script>

<style scoped>
  .com .p {
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #000;
  }

  .span {
    padding: 0 10px;
  }

  .industry {
    padding: 10px 0;
  }

  .industry .a {
    color: #000;
    font-size: 16px;
    padding-top: 20px;
  }

  .industry .a:hover {
    color: rgb(0, 51, 255);
  }

  .industry > ul li {
    padding: 0;
    margin: 0;
    list-style: none
  }

  .industry > ul > li {
    padding: 6px 0;
  }
</style>
